            <div id="content"> <!-- Content begins here -->
                
                <?php echo $this->element('admin/flash') ?>
                <div class="clear"></div>
                <h2>Locations</h2>
                <a class="btn" href="<?php echo $html->url(array('controller'=>'districts','action'=>'add')) ?>"><b>+ Add New Location</b></a>
                <a class="btn ml10" href="<?php echo $html->url(array('controller'=>'districts','action'=>'tree')) ?>"><b>+ Re-Order Locations</b></a>
                
                <div class="clear"></div>
                
                <table cellspacing="0" cellpadding="0" border="0"><!-- Table -->
                    <thead>
                        <tr>
                            <th>Locations</th>
                            <th>Total Items</th>
                            <th>Parent</th>
                            <th>Date Created</th>
                            <th>Actions</th>
                        </tr>
                    </thead>
                
                    <tbody>
                        <?php if($districts):
                                foreach($districts as $row):
                        ?>
                        <tr>
                            <?php if(!$row['District']['parent_id']): ?>
                            <td><b><?php echo $row['District']['name'] ?></b></td>
                            <?php else: ?>
                            <td><?php echo $row['District']['name'] ?></td>
                            <?php endif ?>
                            <td><?php echo $row['District']['post_count'] ?></td>
                            <td><?php echo $row['District']['parent']["District"]['name'] ?></td>
                            <td><?php echo $row['District']['created'] ?></td>
                            
                            
                            <td>
                                <a href="<?php echo $html->url(array('controller'=>'districts','action'=>'edit',$row['District']['id'])) ?>" title="click to edit this district"><?php echo $html->image('assets/action_add.png') ?></a>
                                <a href="<?php echo $html->url(array('controller'=>'districts','action'=>'delete',$row['District']['id'])) ?>" onclick="return confirm('Are You Sure?')" title="click to delete this district"><?php echo $html->image('assets/action_delete.png') ?></a>
                            </td>
                        </tr>
                        <?php endforeach;
                            else:
                        ?>
                        <tr>
                            
                            <td colspan="5">No data avilable in range</td>
                            
                        </tr>
                        <?php endif ?>
                        
                        
                        
                    </tbody>
                </table> <!-- END Table -->
                
                <?php 
            
                $paginator->options(array('url'=>$this->passedArgs));
                
                    
                    echo '<div class="paginator">';
                                
                    if($paginator->hasPrev()) echo $paginator->prev('Previous', array('class'=>'next page-numbers', 'escape' => false));
                    echo $paginator->numbers(
                        array(
                            'class' => 'page-numbers', 
                            'separator' => ' ', 
                            'before' => ' ',
                            'after' => ' ',
                        )
                    );
                    if($paginator->hasNext()) echo $paginator->next('Next', array('class'=>'next page-numbers', 'escape' => false));
                    echo '</div>';
                    echo '<span class="displaying-num fR" style="margin:18px">'.$paginator->counter(array(
                        'format' => __('Displaying %start%&ndash;%end% of %count%', true)
                    )).'</span>';
                    
                ?>

            
        </div> <!-- END Content -->
        